using System;

namespace BLGenerator.DataLayer
{
    public static class IOModuleFactory
    {
        public static IOModule CreateIOModule(IOModuleType moduleType, string filename, FileOpenType fileOpenType)
        {
            if (moduleType == IOModuleType.XMLIOModule)
                return new XmlIOModule(filename, fileOpenType == FileOpenType.Read);
            throw new NotImplementedException();
        }

        public enum IOModuleType
        {
            XMLIOModule
        }

        public enum FileOpenType
        {
            Read,
            Write
        }
    }
}